// import Home from "../pages/Home"
// import Login from '../pages/login'
// import RegisterPhone from '../pages/registerPhone'

//组件的懒加载
import React from "react"
const Home = React.lazy(() => import('../pages/Home'))
const Login = React.lazy(() => import('../pages/login'))
const RegisterPhone = React.lazy(() => import('../containers/WithPhone'))
const registerVerifyCode = React.lazy(() => import('../containers/WithCode.js'))
const registerVerifyPassword = React.lazy(() => import('../containers/WithPassword'))
const city = React.lazy(() => import('../pages/city'))


export default [
    {
        path: '/',
        component: Login,
        exact: true
    },
    {
        path: '/home',
        component: Home
    },
    {
        path: '/login',
        component: Login
    },
    {
        path: '/register',
        component: RegisterPhone
    },
    {
        path: '/registerVerifyCode',
        component: registerVerifyCode
    },
    {
        path: '/registerVerifyPassword',
        component: registerVerifyPassword
    },
    {
        path: '/city',
        component: city
    },
]